package com.ruoyi.management.paystatuslogs.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.management.paystatuslogs.ro.GetPayStatusLogListParam;
import com.ruoyi.management.paystatuslogs.service.PayStatusLogsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @description: 支付日志
 * @author: xly
 * @date: 2022-01-21
 */
@Api(tags = "支付日志")
@RestController
@RequestMapping("/pay/logs")
public class PayStatusLogsController {

    @Autowired
    private PayStatusLogsService payStatusLogsService;

    @ApiOperation("查询日志")
    @GetMapping("/select-list")
    public AjaxResult selectList(@Valid GetPayStatusLogListParam param){
        return AjaxResult.success(payStatusLogsService.selectList(param));
    }
}
